<?php

class Types
{

    public function introduction($value)
    {
        $type = gettype($value);
        debug_zval_dump($value);
        echo "input value : " . $value, PHP_EOL;
        echo "the type of a variable : " . $type , PHP_EOL;
        echo "Find whether the type of a variable is string : " . $this->boolChange(is_string($value)) , PHP_EOL;
        echo "Finds whether a variable is a number or a numeric string : " . is_numeric($value) , PHP_EOL;
        echo "Finds whether a variable is a number or a numeric string : " . is_int($value) , PHP_EOL;
    }

    private function boolChange($value): string
    {
        return $value == true ? 'true' : 'false';
    }
}